﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MiniFox.Exceptions
{
    /// <summary>
    /// 数据不存在
    /// </summary>
    public class NonexistentDataException : Exception
    {
        /// <summary>
        /// 
        /// </summary>
        object _data;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="dataValue"></param>
        /// <param name="message"></param>
        public NonexistentDataException(object dataValue, string message)
            : base(message)
        {
            _data = dataValue;
        }
        /// <summary>
        /// 
        /// </summary>
        public object DataValue { get { return _data; } }
    }
}
